package cn.luischen.interceptor;

import org.junit.Rule;
import org.junit.rules.ExpectedException;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.powermock.core.classloader.annotations.PowerMockIgnore;

import com.alibaba.fastjson.parser.ParserConfig;
import com.unitspirit.runtime.GlobalUnitInit;

/**
* The class <code>BaseInterceptorTest</code> contains tests for the class <code>{@link BaseInterceptor}</code>.
* Copyright (c) 2020
* 
* @generatedBy UnitSpirit at 2021-09-05 20:52:25
* @version 1.0.20210903
*/

@PowerMockIgnore({ "javax.management.*" })
public class BaseInterceptor_WGTest2 {

	@InjectMocks
	cn.luischen.interceptor.BaseInterceptor unitspirit_fixture;
	@Mock
	cn.luischen.service.user.UserService mock_UserService;
	@Mock
	cn.luischen.utils.AdminCommons mock_AdminCommons;
	@Mock
	cn.luischen.service.option.OptionService mock_OptionService;
	@Mock
	cn.luischen.utils.Commons mock_Commons;

	@Rule
	public ExpectedException unitspirit_thrown = ExpectedException.none();

	/**
	* 测试方法初始化.
	* 
	* @throws Exception 
	*         if the initialization fails for some reason 
	*  
	* @generatedBy UnitSpirit at 2021-09-05 20:52:25
	*/
	@org.junit.Before
	public void setUp() throws Exception {
		try {
			GlobalUnitInit.init();
			MockitoAnnotations.initMocks(this);
			ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

}